# Contributor: Jordan Christiansen <xordspar0@gmail.com>
# Maintainer: Jordan Christiansen <xordspar0@gmail.com>
pkgname=acme-client
pkgver=1.3.0
pkgrel=1
pkgdesc="Client for issuing certificates from ACME-complaint servers"
url="https://git.sr.ht/~graywolf/acme-client-portable"
arch="all"
license="GPL-2.0-only"
makedepends="openssl1.1-compat-dev byacc automake autoconf"
subpackages="$pkgname-doc"
source="https://data.wolfsden.cz/sources/acme-client-$pkgver.tar.gz"
options="!check" # Tests require modifying /etc/hosts

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
433dc38317ebf346b732955e2c2adb4da02c5586840a92914b7898e86a109bd891d20d46b1dfee652b5d5b688fd85b87a5bdc151c4a7bb8cb6a7c6f494f14ccc  acme-client-1.3.0.tar.gz
"
